import { http } from '@/axios'

/**
 * @description 发送消息
 */
export function sendMessage(data) {
  return http.request({
    url: '/message/send',
    method: 'POST',
    timeout: 120000,
    data,
  })
}

/**
 * @description 会话列表
 */
export function messageList(data) {
  return http.request({
    url: '/message/list',
    method: 'POST',
    data,
  })
}

/**
 * @description 会话内容
 */
export function messageContents(data) {
  return http.request({
    url: '/message/contents',
    method: 'POST',
    data,
  })
}

/**
 * @description  删除会话
 */
export function deleteMessage(data) {
  return http.request({
    url: '/message/delete',
    method: 'POST',
    data,
  })
}
